<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>复制给好友 - {$SEO['site_title']}</title>
<link href="{CSS_PATH}108wo/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}108wo/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function(){
	$('#createForm').submit(function(){
		$.post($(this).attr('action'), $(this).serializeArray(), function(data){
			alert(data.msg);
			if(data.code == true)
			{
				//parent.$('#fancybox-close').click();
				top.location.reload();
			}
		}, 'json');

		return false;
	});
})
</script>
</head>
<body style="background:none">
<div id="createList" style="width:550px">
	<h1>转发给好友</h1>		
	<ul>
		<form action="{APP_PATH}index.php?m=order&c=index&a=copy" method="POST" id="createForm">
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td align="right" width="120">转发的清单名称</td>
				<td>{$order[title]}</td>
			</tr>
			<tr>
				<td align="right">好友的注册邮箱</td>
				<td><input type="text" name="username" id="username" value="" size="40" /></td>
			</tr>
			<tr>
				<td align="right">是否发送EMAIL</td>
				<td><input type="checkbox" name="sendmail" /></td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td><button type="submit">提交</button></td>
			</tr>
		</table>
		<input type="hidden" name="dosubmit" value=1 />
		<input type="hidden" name="ajax" value=1 />
		<input type="hidden" name="id" value="{$order[id]}" />
		</form>
	</ul>
	{if $members}
	<ul style="padding-bottom:30px">
		<h4 style="margin-bottom:5px">我经常转发的好友：</h4>
		{loop $members $v}
		<li style="float:left;color:#aaa;margin-right:10px;padding:2px 0px"><a href="javascript:void(0);" onclick="$('#username').val($(this).html());">{$v[username]}</a> [{$v[nickname]}]</li>
		{/loop}
		<li class="clearit"></li>
	</ul>
	{/if}
</div>
</body>
</html>
